<?php
// +----------------------------------------------------------------------
// | Description: 1
// +----------------------------------------------------------------------
// | Author: orchief
// +----------------------------------------------------------------------
// | Date: 2018-01-24 17:00:12
// +----------------------------------------------------------------------

namespace app\client\validate;

use think\Validate;

/**
 * 
 */
class Base extends Validate
{   
    //定义验证规则
    protected $rule = array(
        'code'                  => 'require',
        'CellPhone'             => 'require',
        'Password'              => 'require',
    );
    //定义验证提示信息
    protected $message = array(
        'code.require'          => '请输入验证码',
        'CellPhone.require'     => '请输入手机号',
        'Password.require'      => '请输入密码',
    );
    //定义验证场景
    protected $scene = [
        //注册验证场景signUp
        'signUp'    =>      ['code', 'CellPhone', 'Password']
    ];
}